xend: VBD QoS policy bits
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Aug 2009 16:10:11 +0000 (17:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Aug 2009 16:10:11 +0000 (17:10 +0100)
commit2ca1b6fff7d18cf2049432ea78387cd326e8bbf2
tree6c62cc246c53bff9fd168102fb9eea6fca037244
parent0cd32f209e46769f59674c99644c1c95e0c1a686
xend: VBD QoS policy bits

Add the ability to define VBD QoS policy in the xend layer.

Consider the following vbd entry:

vbd = [
   'phy:/dev/server/virtualmachine1-disk,xvda1,w,credit=3D5000/s@50ms',
]

This means that a VM may perform 5000 I/O operations per second, with
credit being replenished every 50 milliseconds.

The 'credit' xenstore value is by the blkback driver to ratelimit I/O
operations for the specific device.

Signed-off-by: William Pitcock <nenolod@dereferenced.org>
tools/python/README.sxpcfg
tools/python/xen/xend/server/blkif.py